package homework_04.home_02;

import java.util.Arrays;

public class HomeWork_02 {
    /*将一个字符数组的值（neusofteducation）拷贝到另一个字符数组中。*/
    public static void main(String[] args) {
        char []a= {'n','e','u','s','o','f','t','e','d','u','c','a','t','i','o','n'};
        char []b=copy(a);
        System.out.println(Arrays.toString(b));

    }
    public static char[] copy(char [] a){
        char []b=new char[a.length];
        for(int i=0;i<a.length;i++){
            b[i]=a[i];
        }
        return b;
    }
}
